print("\n#---------------range()生成一系列数字-----------#")
for value in range(1,6):
	print(value)
	
print("\n#------------range()生成一系列数字转换为列表--------#")	
numbers = list(range(1,10))
print(numbers)

print("\n#---------循环生成一系列数字后将其平方的值附加到列表--------#")	
sequares = []
#for value in range(1,11):
#	 square = value**2
#	 sequares.append(square)

#for循环还可以这样写更为简介
for value in range(1,11):
	 sequares.append(value**2)
print(sequares)

print("\n#---------统计计算--------#")
digits=[1,2,3,4,5,6,7,8,9,0]
minimum = min(digits)
maximum = max(digits)
summ = sum(digits)
print("\nMinimum is :"+str(minimum))
print("\nMaximum is :"+str(maximum))
print("\nSummary is :"+str(summ))

